package test

import (
	"awesome/model"
	"fmt"
)

func ChangeShuzu(users *[]model.User) {
	*users = append(*users, model.User{Name: "fwefwe", Age: 18, Sex: "女"})
}

// 二级指针
func ChangeShuzu2(users *[]*model.User) {
	*users = append(*users, &model.User{Name: "fwefwe", Age: 18, Sex: "女"})
}
func main() {
	var users []*model.User
	ChangeShuzu2(&users)
	fmt.Println(users[0])
}
